Calendar Control Syntax
Syntax
[%P=POPUP.CALENDAR(DTOC( Default_Date [, Format ] );I=POPUP.CALENDAR%. Width Selected_Date ]
[%P=A5_GETDATEHTML( Title, Default_Date, CSS_Style )%. Width Selected_Date ]
Arguments
- Default_Date
Character. The initial date to display in the control.
- Format
Character. Optional. Default = "MM/DD/YYYY". Refer to Year, Month, Day, and Week Format Codes.
- Width
Numeric. For Popup.Calender() it is The width of the control. For A5_GetDATEHTML() it is the width of the calculator in characters, by default based on Arial 8 point.
- Selected_Date
Date. The selected date value.
- CSS_Style
Character. The path and name of a CSS style to apply.
Description
Displays a popup calendar.
Disucssion
The Calendar Control displays a popup calendar. One or more Calendar controls may appear inside the Format section of a UI_DLG_BOX() or UI_MODELESS_DLG_BOX() function.
Example
date1 = date() result=ui_dlg_box("Calendar Control",<<%dlg% {font=Tahoma,8} {units=f} {ysize=2} {lf}; Date:| [%P=popup.calendar( dtoc(date1) );I=popup.calendar%.30date1]; {lf}; <*15&OK>; %dlg%)
See Also